package com.wyk.service;

import com.wyk.bean.Payment;
import com.wyk.mapper.PaymentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author WangYuKai
 * @Date 2022/5/12
 * @apiNote
 */
@Service
public class PaymentImpl implements PaymentService{
    //注入mapper层
    @Autowired
    private PaymentMapper paymentMapper;
    @Override
    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }

    @Override
    public Payment getPaymentById(Integer id) {
        return paymentMapper.getPaymentById(id);
    }
}
